package org.jackysoft.entity.nosql;

import java.util.Collection;

import org.jackysoft.entity.nosql.AbstractNoSqlEntity;

import com.google.common.collect.Lists;

public class NewsCatalog extends AbstractNoSqlEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3306331934599291157L;


	private String name;
	
	private String description;
	
	private boolean canChildren = true;
	
	private String parentId;

	private String href;
	
	private boolean external = false;
	
	private String manager;

	private Collection<NewsCatalog> children = Lists.newArrayList();
	
	private String menuBar;
	
	
	public NewsCatalog() {

	}
	
	

	public NewsCatalog(String name) {
		this();
		this.name = name;
	}
	

	public NewsCatalog(String name,String desc) {
		this(name);
		this.description = desc;
	}
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	public boolean isCanChildren() {
		return canChildren;
	}


	public void setCanChildren(boolean canChildren) {
		this.canChildren = canChildren;
	}


	public String getParentId() {
		return parentId;
	}


	public void setParentId(String parentId) {
		this.parentId = parentId;
	}


	public String getHref() {
		return href;
	}


	public void setHref(String href) {
		this.href = href;
	}


	public boolean isExternal() {
		return external;
	}


	public void setExternal(boolean external) {
		this.external = external;
	}


	public Collection<NewsCatalog> getChildren() {
		return children;
	}


	public void setChildren(Collection<NewsCatalog> children) {
		this.children = children;
	}


	public String getMenuBar() {
		return menuBar;
	}


	public void setMenuBar(String menuBar) {
		this.menuBar = menuBar;
	}



	public String getManager() {
		return manager;
	}



	public void setManager(String manager) {
		this.manager = manager;
	}

}